package org.bluedream.core.config.shiro;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.apache.shiro.authc.UsernamePasswordToken;

/**
 * @ClassName CustomUserNamePasswordToken
 * @Description TODO
 * @Author foxsand
 * @Data 2021-06-18 11:25
 * @Version
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class CustomUsernamePasswordToken extends UsernamePasswordToken {

    private static final long serialVersionUID = 1560242330091698700L;
    private String orgCode;

    public CustomUsernamePasswordToken(String username, String password,
                                       boolean rememberMe, String host, String orgCode) {
        super(username, password, rememberMe, host);
        this.orgCode = orgCode;
    }
}
